package ycl.important.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import ycl.important.common.base.entity.BaseEntity;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author YCL
 * @since 2021-06-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SysUser对象", description = "用户表")
@TableName("sys_user")
public class User extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户名")
	private String username;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "加密盐")
	private String salt;

	@ApiModelProperty(value = "头像")
	private String avatar;

	@ApiModelProperty(value = "真实名")
	private String realName;

	@ApiModelProperty(value = "身份证")
	private String idCard;

	@ApiModelProperty(value = "年龄")
	private Integer age;

	@ApiModelProperty(value = "性别，1男，0女")
	private Boolean sex;

	@ApiModelProperty(value = "登录信息")
	private String token;

	@ApiModelProperty(value = "邀请码")
	private String invitationCode;

	@ApiModelProperty(value = "父id, 邀请人的id")
	private String parentId;

	@ApiModelProperty(value = "手机号")
	private String mobile;

	@ApiModelProperty(value = "qq")
	private String qq;

	@ApiModelProperty(value = "微信")
	private String wechat;

	@ApiModelProperty(value = "邮箱")
	private String email;

	@ApiModelProperty(value = "状态，0正常，1禁用")
	private Integer status;

	@ApiModelProperty(value = "注册时间")
	private LocalDateTime registerTime;

	@ApiModelProperty(value = "是否锁住，锁住不可登录，0否，1是")
	private Boolean locked;

	@ApiModelProperty(value = "登录地址")
	private String loginIp;

	@ApiModelProperty(value = "登录时间")
	private LocalDateTime loginTime;

	@ApiModelProperty(value = "上次登录地址")
	private String lastLoginIp;

	@ApiModelProperty(value = "上次登录时间")
	private LocalDateTime lastLoginTime;

	@ApiModelProperty(value = "退出时间")
	private LocalDateTime logoutTime;


}
